/* @formatter:off
 * Copyright (c) 2011 Lucas <lucas03093@gmail.com>
 * 
 * 
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see <http://www.gnu.org/licenses/>.
 */
/* @formatter:on */

package nu.korkad.daytracker.settings;

import java.io.File;

import android.os.Environment;

import com.dropbox.client2.session.Session.AccessType;

public class Config
{
    /* App info */
    public static final String     APPLICATION_NAME                = "Daytracker";
    public static final String     APPLICATION_BUGSENSE            = "57ae240c";
    
    /* Database Settings */
    public static final String     DATABASE_NAME                   = "data.db";
    public static final int        DATABASE_VERSION                = 5;
    public static final String     DATABASE_TABLE                  = "tracker";
    
    /* Archive ListView Settings */
    public static final int        ARCHIVE_COMPANY_NAME_LIMIT      = 10;
    public static final int        ARCHIVE_REPORT_LIMIT            = 25;
    
    /* PrefStore Settings */
    public static final String     PREFSTORE_GENERAL               = "nu.korkad.daytracker_preferences.xml";
    public static final String     PREFSTORE_DROPBOX               = "dropbox";
    public static final String     PREFSTORE_PRIVATE               = "private_stuff";
    
    /* Internal file locations */
    public static final String     INTERNAL_DIR_ROOT               = Environment.getDataDirectory() + File.separator + "data"
                                                                           + File.separator + "nu.korkad.daytracker";
    public static final String     INTERNAL_DIR_DATABASE           = INTERNAL_DIR_ROOT + File.separator + "databases";
    public static final String     INTERNAL_DIR_DATABASE_FILE      = INTERNAL_DIR_DATABASE + File.separator + DATABASE_NAME;
    public static final String     INTERNAL_DIR_SHAREDPREF         = INTERNAL_DIR_ROOT + File.separator + "shared_prefs";
    public static final String     INTERNAL_DIR_SHAREDPREF_GENERAL = INTERNAL_DIR_SHAREDPREF + File.separator + PREFSTORE_GENERAL;
    
    /* External file locations */
    public static final String     EXTERNAL_DIR_ROOT               = Environment.getExternalStorageDirectory().toString() + File.separator
                                                                           + APPLICATION_NAME;
    public static final String     EXTERNAL_DIR_DATABASE           = EXTERNAL_DIR_ROOT + File.separator + "databases";
    public static final String     EXTERNAL_DIR_DATABASE_FILE      = EXTERNAL_DIR_DATABASE + File.separator + DATABASE_NAME;
    public static final String     EXTERNAL_DIR_SHAREDPREF         = EXTERNAL_DIR_ROOT + File.separator + "shared_prefs";
    public static final String     EXTERNAL_DIR_SHAREDPREF_GENERAL = EXTERNAL_DIR_SHAREDPREF + File.separator + PREFSTORE_GENERAL;
    
    /* Log settings */
    public static final String     LOG_ERROR_FILE                  = EXTERNAL_DIR_ROOT + File.separator + "errorlog.txt";
    
    /* Dropbox settings */
    public static final String     DROPBOX_APP_KEY                 = "ogok8lf4d6ws4g1";
    public static final String     DROPBOX_APP_SECRET              = "n0bhxp3p4hy7ivn";
    public static final AccessType DROPBOX_ACCESS_TYPE             = AccessType.APP_FOLDER;
    public static String           DROPBOX_DEVICE_ID               = "";                                                          // This is set in nu.korkad.daytracker.activity.Main.java
    public static final String     DROPBOX_DIR_DATABASE            = "_exports/databases";
    public static final String     DROPBOX_DIR_DATABASE_FILE       = DROPBOX_DIR_DATABASE + "/" + DATABASE_NAME;
    public static final String     DROPBOX_DIR_SHAREDPREF          = "_exports/shared_prefs";
    public static final String     DROPBOX_DIR_SHAREDPREF_GENERAL  = DROPBOX_DIR_SHAREDPREF + "/" + PREFSTORE_GENERAL;
    public static final String     DROPBOX_DIR_REPORTS             = "_reports/";
    
    /* Menu Options */
    public static final int        MENU_ARCHIVE_CONTEXT_MARK       = 1;
}
